package nc.ui.mmpac.sumpickm.dialog.config;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import nc.ui.uif2.factory.AbstractJavaBeanDefinition;

public class mm_sumpickm_sumdim_Dialog extends AbstractJavaBeanDefinition{
	private Map<String, Object> context = new HashMap();
public nc.vo.bd.meta.BDObjectAdpaterFactory getSumdimBoadatorfactory(){
 if(context.get("sumdimBoadatorfactory")!=null)
 return (nc.vo.bd.meta.BDObjectAdpaterFactory)context.get("sumdimBoadatorfactory");
  nc.vo.bd.meta.BDObjectAdpaterFactory bean = new nc.vo.bd.meta.BDObjectAdpaterFactory();
  context.put("sumdimBoadatorfactory",bean);
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

public nc.ui.mmpac.sumpickm.dialog.model.SumPickmSumDimManageModel getDialogBillModel(){
 if(context.get("dialogBillModel")!=null)
 return (nc.ui.mmpac.sumpickm.dialog.model.SumPickmSumDimManageModel)context.get("dialogBillModel");
  nc.ui.mmpac.sumpickm.dialog.model.SumPickmSumDimManageModel bean = new nc.ui.mmpac.sumpickm.dialog.model.SumPickmSumDimManageModel();
  context.put("dialogBillModel",bean);
  bean.setContext((nc.vo.uif2.LoginContext)findBeanInUIF2BeanFactory("context"));
  bean.setBusinessObjectAdapterFactory(getSumdimBoadatorfactory());
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

public nc.ui.pubapp.uif2app.query2.model.ModelDataManager getDialogModelDataManager(){
 if(context.get("dialogModelDataManager")!=null)
 return (nc.ui.pubapp.uif2app.query2.model.ModelDataManager)context.get("dialogModelDataManager");
  nc.ui.pubapp.uif2app.query2.model.ModelDataManager bean = new nc.ui.pubapp.uif2app.query2.model.ModelDataManager();
  context.put("dialogModelDataManager",bean);
  bean.setModel(getDialogBillModel());
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

public nc.ui.mmpac.sumpickm.dialog.view.SumPickmSumDimDialog getSumdimDialog(){
 if(context.get("sumdimDialog")!=null)
 return (nc.ui.mmpac.sumpickm.dialog.view.SumPickmSumDimDialog)context.get("sumdimDialog");
  nc.ui.mmpac.sumpickm.dialog.view.SumPickmSumDimDialog bean = new nc.ui.mmpac.sumpickm.dialog.view.SumPickmSumDimDialog();
  context.put("sumdimDialog",bean);
  bean.setBillForm(getSumdimDialogBillForm());
  bean.setModel(getDialogBillModel());
  bean.setTangramContainer(getSumdimDialogContainer());
  bean.setDlgWidth(500);
  bean.setDlgHeight(300);
  bean.setResizable(true);
  bean.setBtnHandlerStrategy(getActionSty());
  bean.initUI();
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

public nc.ui.mmpac.sumpickm.dialog.action.SumdimActionStrategy getActionSty(){
 if(context.get("actionSty")!=null)
 return (nc.ui.mmpac.sumpickm.dialog.action.SumdimActionStrategy)context.get("actionSty");
  nc.ui.mmpac.sumpickm.dialog.action.SumdimActionStrategy bean = new nc.ui.mmpac.sumpickm.dialog.action.SumdimActionStrategy();
  context.put("actionSty",bean);
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

public nc.ui.mmpac.sumpickm.dialog.view.SumPickmSumDimBillForm getSumdimDialogBillForm(){
 if(context.get("sumdimDialogBillForm")!=null)
 return (nc.ui.mmpac.sumpickm.dialog.view.SumPickmSumDimBillForm)context.get("sumdimDialogBillForm");
  nc.ui.mmpac.sumpickm.dialog.view.SumPickmSumDimBillForm bean = new nc.ui.mmpac.sumpickm.dialog.view.SumPickmSumDimBillForm();
  context.put("sumdimDialogBillForm",bean);
  bean.setNodekey("sumdim");
  bean.setModel(getDialogBillModel());
  bean.setTemplateContainer((nc.ui.uif2.editor.TemplateContainer)findBeanInUIF2BeanFactory("templateContainer"));
  bean.setDefItemContainer((nc.ui.uif2.userdefitem.UserDefItemContainer)findBeanInUIF2BeanFactory("userdefitemContainer"));
  bean.initUI();
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

public nc.ui.uif2.TangramContainer getSumdimDialogContainer(){
 if(context.get("sumdimDialogContainer")!=null)
 return (nc.ui.uif2.TangramContainer)context.get("sumdimDialogContainer");
  nc.ui.uif2.TangramContainer bean = new nc.ui.uif2.TangramContainer();
  context.put("sumdimDialogContainer",bean);
  bean.setTangramLayoutRoot(getCNode_1e3703f());
  bean.setActions(getManagedList0());
  bean.setModel(getDialogBillModel());
  bean.initUI();
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

private nc.ui.uif2.tangramlayout.node.CNode getCNode_1e3703f(){
 if(context.get("nc.ui.uif2.tangramlayout.node.CNode#1e3703f")!=null)
 return (nc.ui.uif2.tangramlayout.node.CNode)context.get("nc.ui.uif2.tangramlayout.node.CNode#1e3703f");
  nc.ui.uif2.tangramlayout.node.CNode bean = new nc.ui.uif2.tangramlayout.node.CNode();
  context.put("nc.ui.uif2.tangramlayout.node.CNode#1e3703f",bean);
  bean.setComponent(getSumdimDialogBillForm());
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

private List getManagedList0(){  List list = new ArrayList();  list.add(getSumdimConfirmAction());  list.add(getSumdimCancelAction());  return list;}

public nc.ui.mmpac.sumpickm.dialog.action.SumDimCancelAction getSumdimCancelAction(){
 if(context.get("sumdimCancelAction")!=null)
 return (nc.ui.mmpac.sumpickm.dialog.action.SumDimCancelAction)context.get("sumdimCancelAction");
  nc.ui.mmpac.sumpickm.dialog.action.SumDimCancelAction bean = new nc.ui.mmpac.sumpickm.dialog.action.SumDimCancelAction(getSumdimDialog());  context.put("sumdimCancelAction",bean);
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

public nc.ui.mmpac.sumpickm.dialog.action.SumDimConfirmAction getSumdimConfirmAction(){
 if(context.get("sumdimConfirmAction")!=null)
 return (nc.ui.mmpac.sumpickm.dialog.action.SumDimConfirmAction)context.get("sumdimConfirmAction");
  nc.ui.mmpac.sumpickm.dialog.action.SumDimConfirmAction bean = new nc.ui.mmpac.sumpickm.dialog.action.SumDimConfirmAction(getSumdimDialog());  context.put("sumdimConfirmAction",bean);
  bean.setDialogModel(getDialogBillModel());
  bean.setModel((nc.ui.pubapp.uif2app.model.BillManageModel)findBeanInUIF2BeanFactory("manageAppModel"));
  bean.setDialogBillForm(getSumdimDialogBillForm());
  bean.setValidationService(getValidateService());
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

public nc.ui.pubapp.uif2app.validation.CompositeValidation getValidateService(){
 if(context.get("validateService")!=null)
 return (nc.ui.pubapp.uif2app.validation.CompositeValidation)context.get("validateService");
  nc.ui.pubapp.uif2app.validation.CompositeValidation bean = new nc.ui.pubapp.uif2app.validation.CompositeValidation();
  context.put("validateService",bean);
  bean.setValidators(getManagedList1());
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

private List getManagedList1(){  List list = new ArrayList();  list.add(getTemplateNotNullValidation_126c874());  return list;}

private nc.ui.pubapp.uif2app.validation.TemplateNotNullValidation getTemplateNotNullValidation_126c874(){
 if(context.get("nc.ui.pubapp.uif2app.validation.TemplateNotNullValidation#126c874")!=null)
 return (nc.ui.pubapp.uif2app.validation.TemplateNotNullValidation)context.get("nc.ui.pubapp.uif2app.validation.TemplateNotNullValidation#126c874");
  nc.ui.pubapp.uif2app.validation.TemplateNotNullValidation bean = new nc.ui.pubapp.uif2app.validation.TemplateNotNullValidation();
  context.put("nc.ui.pubapp.uif2app.validation.TemplateNotNullValidation#126c874",bean);
  bean.setBillForm(getSumdimDialogBillForm());
setBeanFacotryIfBeanFacatoryAware(bean);
invokeInitializingBean(bean);
return bean;
}

}
